package com.wanmait.baohan.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

@TableName(value = "work_template_executable")
public class WorkTemplateExecutable implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 立项id
     */
    @TableField(value = "initate_project_id")
    private Integer initateProjectId;
    @TableField(exist = false)
    private InitiateProject initiateProject;

    /**
     * 模板内容id
     */
    @TableField(value = "work_template_content_id")
    private Integer workTemplateContentId;
    @TableField(exist = false)
    private WorkTemplateContent workTemplateContent;
    /**
     * 员工id
     */
    @TableField(value = "staff_id")
    private Integer staffId;
    @TableField(exist = false)
    private Staff staff;
    /**
     * 截止日期
     */
    @TableField(value = "date")
    private Date date;

    /**
     * 创建时间
     */
    @TableField(value = "input_time")
    private Date inputTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_INITATE_PROJECT_ID = "initate_project_id";

    public static final String COL_WORK_TEMPLATE_CONTENT_ID = "work_template_content_id";

    public static final String COL_STAFF_ID = "staff_id";

    public static final String COL_DATE = "date";

    public static final String COL_INPUT_TIME = "input_time";

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取立项id
     *
     * @return initate_project_id - 立项id
     */
    public Integer getInitateProjectId() {
        return initateProjectId;
    }

    /**
     * 设置立项id
     *
     * @param initateProjectId 立项id
     */
    public void setInitateProjectId(Integer initateProjectId) {
        this.initateProjectId = initateProjectId;
    }

    /**
     * 获取模板内容id
     *
     * @return work_template_content_id - 模板内容id
     */
    public Integer getWorkTemplateContentId() {
        return workTemplateContentId;
    }

    /**
     * 设置模板内容id
     *
     * @param workTemplateContentId 模板内容id
     */
    public void setWorkTemplateContentId(Integer workTemplateContentId) {
        this.workTemplateContentId = workTemplateContentId;
    }

    /**
     * 获取员工id
     *
     * @return staff_id - 员工id
     */
    public Integer getStaffId() {
        return staffId;
    }

    /**
     * 设置员工id
     *
     * @param staffId 员工id
     */
    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    /**
     * 获取截止日期
     *
     * @return date - 截止日期
     */
    public Date getDate() {
        return date;
    }

    /**
     * 设置截止日期
     *
     * @param date 截止日期
     */
    public void setDate(Date date) {
        this.date = date;
    }

    /**
     * 获取创建时间
     *
     * @return input_time - 创建时间
     */
    public Date getInputTime() {
        return inputTime;
    }

    /**
     * 设置创建时间
     *
     * @param inputTime 创建时间
     */
    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    public Staff getStaff() {
        return staff;
    }

    public void setStaff(Staff staff) {
        this.staff = staff;
    }

    public WorkTemplateContent getWorkTemplateContent() {
        return workTemplateContent;
    }

    public void setWorkTemplateContent(WorkTemplateContent workTemplateContent) {
        this.workTemplateContent = workTemplateContent;
    }

    public InitiateProject getInitiateProject() {
        return initiateProject;
    }

    public void setInitiateProject(InitiateProject initiateProject) {
        this.initiateProject = initiateProject;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", initateProjectId=").append(initateProjectId);
        sb.append(", workTemplateContentId=").append(workTemplateContentId);
        sb.append(", staffId=").append(staffId);
        sb.append(", date=").append(date);
        sb.append(", inputTime=").append(inputTime);
        sb.append("]");
        return sb.toString();
    }
}